package DB_Manage;

/**
 * This class is a basic data object for billing site data.
 * @author Johann Jungbauer
 */
public class BillingSiteData {
    private String _BillingSiteRef;
    private String _BillSiteName;
    private String _Script;
    private String _Type;
    private String _MaintenanceWindow;
    private int _BillingCycle;
    private int _RetryInterval;
    private int _LeadTime;
    private int _Concurrent;
    private String[] _IDFields = new String[5];
    private String[] _AuthFields = new String[5];
    
    public BillingSiteData(String billingRef, String name, String type, String script, 
            String maintain, int interval, int billingCycle, int leadTime, int concurrent,
            String[] idFields, String[] authFields)
    {
        setBillingSiteRef(billingRef);
        setBillSiteName(name);
        setScript(script);
        setType(type);
        setMaintenanceWindow(maintain);
        setBillingCycle(billingCycle);
        setRetryInterval(interval);
        setLeadTime(leadTime);
        setConcurrent(concurrent);
        setIDFields(idFields);
        setAuthFields(authFields);
    }
    
    public String getBillingSiteRef()
    {
        return _BillingSiteRef;
    }
    public String getBillSiteName()
    {
        return _BillSiteName;
    }
    public String getScript()
    {
        return _Script;
    }
    public String getMaintanenceWindow()
    {
        return _MaintenanceWindow;
    }
    public int getBillingCycle()
    {
        return _BillingCycle;
    }
    public int getRetryInterval()
    {
        return _RetryInterval;
    }
    public int getLeadTime()
    {
        return _LeadTime;
    }
    public int getConcurrent()
    {
        return _Concurrent;
    }
    public String[] getIDFields()
    {
        return _IDFields;
    }
    public String[] getAuthFields()
    {
        return _AuthFields;
    }
    
    public String getType()
    {
        return _Type;
    }
    
    private void setType(String type)
    {
        _Type = type;
    }
    private void setBillingSiteRef(String billingRef)
    {
        _BillingSiteRef = billingRef;
    }
    private void setBillSiteName(String name)
    {
        _BillSiteName = name;
    }
    private void setScript(String script)
    {
        _Script = script;
    }
    private void setMaintenanceWindow(String maint)
    {
        _MaintenanceWindow = maint;
    }
    private void setBillingCycle(int billingCycle)
    {
        _BillingCycle = billingCycle;
    }
    private void setRetryInterval(int interval)
    {
        _RetryInterval = interval;
    }
    private void setLeadTime(int leadTime)
    {
        _LeadTime = leadTime;
    }
    private void setConcurrent(int concurrent)
    {
        _Concurrent = concurrent;
    }
    private void setIDFields(String[] fields)
    {
        _IDFields = fields;
    }
    private void setAuthFields(String[] fields)
    {
        _AuthFields = fields;
    }
    public void print()
    {
        System.out.println();
        System.out.println(_BillingSiteRef);
        System.out.println(_BillSiteName);
        System.out.println(_Type);
        System.out.println(_Script);
        System.out.println(_MaintenanceWindow);
        System.out.println(_RetryInterval);
        System.out.println(_BillingCycle);
        System.out.println(_LeadTime);
        System.out.println(_Concurrent);
        for(int i = 0; i < 5; i++)
        {
            System.out.println(_IDFields[i]);
        }
        for(int i = 0; i < 5; i++)
        {
            System.out.println(_AuthFields[i]);
        }
    }
}
